<?php
include 'db.php';
	
$subject=$_GET['s'];

$q=mysql_query("SELECT * FROM sessions WHERE subject='$subject' AND student='' AND tutortime > (NOW() -5)");

while($data = mysql_fetch_row($q))
	echo "$data[1]".PHP_EOL;
mysql_close($link);
?>
